/**获取缩放值 */
export const getScale = () => {
  return window.innerWidth / 1920
}

/**计算图表grid */
export const calculateChartGrid = (l = 36, r = 12, t = 24, b = 36) => {
  const scale = getScale();
  const left = scale * l;
  const right = scale * r;
  const top = scale * t;
  const bottom = scale * b;
  return {
    left, right, top, bottom
  }
}